/*  1:   */ package com.atomikos.icatch.admin.jmx;
/*  2:   */ 
/*  3:   */ import com.atomikos.icatch.HeurCommitException;
/*  4:   */ import com.atomikos.icatch.HeurHazardException;
/*  5:   */ import com.atomikos.icatch.HeurMixedException;
/*  6:   */ import com.atomikos.icatch.HeurRollbackException;
/*  7:   */ import com.atomikos.icatch.SysException;
/*  8:   */ import com.atomikos.icatch.admin.AdminTransaction;
/*  9:   */ 
/* 10:   */ public class JmxPreparedTransaction
/* 11:   */   extends JmxTransaction
/* 12:   */   implements JmxPreparedTransactionMBean
/* 13:   */ {
/* 14:   */   public JmxPreparedTransaction(AdminTransaction adminTransaction)
/* 15:   */   {
/* 16:55 */     super(adminTransaction);
/* 17:   */   }
/* 18:   */   
/* 19:   */   public void forceCommit()
/* 20:   */     throws HeurRollbackException, HeurHazardException, HeurMixedException, SysException
/* 21:   */   {
/* 22:   */     try
/* 23:   */     {
/* 24:67 */       getAdminTransaction().forceCommit();
/* 25:   */     }
/* 26:   */     finally
/* 27:   */     {
/* 28:69 */       unregister();
/* 29:   */     }
/* 30:   */   }
/* 31:   */   
/* 32:   */   public void forceRollback()
/* 33:   */     throws HeurCommitException, HeurHazardException, HeurMixedException, SysException
/* 34:   */   {
/* 35:   */     try
/* 36:   */     {
/* 37:82 */       getAdminTransaction().forceRollback();
/* 38:   */     }
/* 39:   */     finally
/* 40:   */     {
/* 41:84 */       unregister();
/* 42:   */     }
/* 43:   */   }
/* 44:   */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\transactions\3.7.0\transactions-3.7.0.jar
 * Qualified Name:     com.atomikos.icatch.admin.jmx.JmxPreparedTransaction
 * JD-Core Version:    0.7.0.1
 */